<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<title>购买流程-步骤二</title>
<link href="../c/base.css" rel="stylesheet" type="text/css">
<link href="../c/toefl.css" rel="stylesheet" type="text/css">
<script src="../j/jquery-2.1.0.js" type="text/javascript"
	charset="utf-8"></script>
</head>
<script type="text/javascript">
	function define() {
		$("#orderform").submit();
	}
	
	function edit(){
		var pay_name = $("#pay_name").text();
		var pay_tel = $("#pay_tel").text();
		var castle_id = $("#castle_id").val();
		window.location = "toStepOne?pay_name=" + pay_name + "&pay_tel=" + pay_tel + "&castle_id=" + castle_id;
	}
</script>
<body>
	<form action="toStepThree" method="post" id="orderform">
		<input type="hidden" name="castle_id" id="castle_id" th:value="${castle.castle_id}">
		<input type="hidden" name="user_id" th:value="${session.sess_user.user_id}">
		<input type="hidden" name="castle_pay" th:value="${castle.castle_pay}">
	</form>
	
	<div class="doc1180">
		<div class="process">
			<div class="processTop">
				<ul>
					<li>填写联系人并确认商品信息</li>
					<li class="on"><a href="###">填写并核对订单信息</a></li>
					<li><a href="###">购买完成</a></li>
				</ul>
			</div>
			<div class="processTitle">
				您的订单号<span class="processNum">178999999</span>
			</div>
			<div class="processTs">确认您的信息</div>
			<div class="processQr">
				<span>姓名：</span><span id="pay_name">[[${pay_name}]]</span>
			</div>
			<div class="processQr paddingB20">
				<span>电话：</span><span id="pay_tel">[[${pay_tel}]]</span>
			</div>
			<div class="processTable">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td>课程</td>
						<td>数量</td>
						<td>单价</td>
						<td>总价</td>
					</tr>
					<tr>
						<td class="processKc">
							<div class="processPic">
								<img th:src="${castle.img_url}">
							</div>
							<div class="processText">[[${castle.class_title}]]</div>
						</td>
						<td>1</td>
						<td>[[${castle.castle_pay}]]元</td>
						<td>[[${1 * castle.castle_pay}]]元</td>
					</tr>
					<tr>
						<td></td>
						<td colspan="3" class="processPay">
							<div>共 1 门课程 ，应付金额：[[${1 * castle.castle_pay}]]元</div>
							<div>
								使用<input type="text" class="processRPB">RPB，抵扣：-100.00
							</div>
							<div class="f_12">（可用RPB2000，本次最高可用1000）</div>
						</td>
					</tr>
				</table>
				<div class="processYf">
					应付金额：<span>[[${1 * castle.castle_pay}]]</span>元
				</div>
				<div class="processB">
					<a href="###" class="processButton" onclick="define()">确定</a> <a
						href="###" class="processButton" onclick="edit()">修改</a>

				</div>
			</div>
		</div>
	</div>

</body>
</html>
